#ifndef MANAGEMENT_H
#define MANAGEMENT_H
#include "common.h"
#include <QObject>
#include <local_server.h>
#include <QSharedPointer>
#include <QThread>
#include <tcp_socket.h>
#include "m_socket.h"
#include <handle_manage.h>
#include "process_exe.h"
#include "log.h"
#include "setting.h"
class Management : public QObject
{
    Q_OBJECT
public:
    Management();
    ~Management();
    void localServer_init(QString listenName);             //初始化local服务器
    void tcp_init(QString ip,int port);                    //tcpSoocket初始化并连接
    bool localServer_start();                              //开启local服务器
    void Handle_Setcount(int threadcount);                 //设置计算线程数量
    void Handle_Start();                                   //开启计算线程
     bool process_start();                                  //开启进程
     void process_init();                                   //初始化进程类
     void StartLog();                                      //启用日志
     void Log_init(QString logname);                       //初始化日志
     void Configur_init(QString Filename);                 //配置初始化
     void StartConfigur();                                 //开启配置
private:
    local_server  *l_server=NULL;                //localserver智能指针
    QThread       *l_server_thread=NULL;         //localserver线程
    handle_manage *handlemanage=NULL;            //处理类指针
    QThread       *handle_thread=NULL;           //处理类线程
    QString localServer_name=NULL;               //本地监听
    QSharedPointer<Log>          mylog;          //本地日志
    QSharedPointer<process_exe>  process;        //进程类
    QSharedPointer<Setting>      mysetting;      //配置模块
};

#endif // MANAGEMENT_H
